var agm = {};   //adminGoodsMannage
agm.methods={};
agm.addEvent= function(obj){};
agm.adta={};
$(function () {
    //初始化，layui
    //表单初始化添加依赖
    layui.use('form', function () {
        var form = layui.form;
        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
    //切换iframe 
    $("a[data-href]").click(function(e){
       e.stopPropagation();
       var href = $(this).attr("data-href");
       $("#shop-right-container").attr("src",href);
    });
});